<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>申请审核</title>
</head>
<body class="layui-layout-body">
 <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="body_right">
            <h4 class="nav_title">申请审核</h4>
            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                <ul class="layui-tab-title">
                    <li <#if query.verifyStatus == null>class="layui-this"</#if> lay-id="">全部</li>
                    <li <#if query.verifyStatus=='PENDING'>class="layui-this"</#if>  lay-id="PENDING">待审核</li>
                    <li <#if query.verifyStatus=='PASSED'>class="layui-this"</#if>  lay-id="PASSED">已通过</li>
                    <li <#if query.verifyStatus=='REJECT'>class="layui-this"</#if> lay-id="REJECT">已拒绝</li>
                </ul>
                <div class="layui-tab-content" style="height: 100px;">
                    <div class="layui-tab-item layui-show">
                    
                    	  <div class="layui-form no_bordertop">
			            		<form action="/verify/list.htm" method="get">
			                <div class="layui-form-item">
			                    <div class="layui-inline">
			                    		<label class="layui-form-label">申请时间</label>
			                        <div class="layui-input-inline" style="width:100px">
			                            <input type="text" class="layui-input" name="startTime" id="startTime" autocomplete="off" value="<#if query.startTime??>${query.startTime?string('yyyy-MM-dd')}</#if>" placeholder="开始时间">
			                        </div>
			                        <div class="layui-form-mid">-</div>
			                        <div class="layui-input-inline" style="width:100px">
			                            <input type="text" class="layui-input" name="endTime" id="endTime" autocomplete="off" value="<#if query.endTime??>${query.endTime?string('yyyy-MM-dd')}</#if>" placeholder="结束时间">
			                        </div>
			                    </div>
			                    <div class="layui-inline">
			                        <label class="layui-form-label">申请类型</label>
			                        <div class="layui-input-inline" style="width:100px">
			                            <select name="applyType" lay-filter="aihao">
			                                <option value="">全部</option>
			                                <option value="USED_APPLY" <#if query.applyType=='USED_APPLY'>selected=""</#if>>申请使用</option>
			                                <option value="TAKE_APPLY" <#if query.applyType=='TAKE_APPLY'>selected=""</#if>>申请外带</option>
			                            </select>
			                        </div>
			                    </div>
			                    <div class="layui-inline width80">
			                        <div class="layui-input-inline ">
			                            <button class="layui-btn" lay-submit="" lay-filter="demo1" >搜索</button>
			                        </div>
			                    </div>
			                </div>
			                </form>
			            </div>
                    
                    
                        <table class="layui-table mytable" lay-even="" lay-skin="nob">
                            <thead>
	                            <tr>
	                                <th>申请时间</th>
	                                <th>类型</th>
	                                <th>名称</th>
	                                <th>申请次数</th>
	                                <th>状态</th>
	                                <th>操作</th>
	                            </tr>
                            </thead>
                            <tbody>
                            		<#list pm.datas as item>
	                            <tr>
	                                <td>${item.apply.applyTime?string('yyyy-MM-dd HH:mm:ss')}</td>
	                                <td>
	                                	<@linkage type="APPLY_TYPE" key=item.apply.applyType>
							        		<span class="${linkage.style}">${linkage.name}</span>
							        	</@linkage>
	                                </td>
	                                <td>${item.apply.seal.sealName}</td>
	                                <td>${item.apply.applyTimes}</td>
	                                <td>
	                                	<@linkage type="VERIFY_STATUS" key=item.verifyStatus>
							        		<span class="${linkage.style}">${linkage.name}</span>
							        	</@linkage>
	                                </td>
	                                <td class="aline_a">
	                                	<#if item.verifyStatus=='PENDING'>
	                                	<a href="javascript:openwinx('审核','/verify/info.htm?applyVerifyId=${item.applyVerifyId}',800,600);">审核</a>
	                                	<#else>
	                                	<a href="javascript:openwinx('查看','/verify/info.htm?applyVerifyId=${item.applyVerifyId}',800,600);">查看</a>
	                                	</#if>
	                                </td>
	                            </tr>
	                            </#list>
                            </tbody>
                        </table>
                        <@p.page pm=pm></@p.page>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
	layui.use(['element','laydate'], function(){
	  var $ = layui.jquery,element = layui.element,laydate = layui.laydate; 
	  
	  element.on('tab(docDemoTabBrief)', function(elem){
	    location.href='/verify/list.htm?verifyStatus='+$(this).attr('lay-id');
	  });
	  
	  laydate.render({
	    elem: '#startTime'
	  });
	  
	  laydate.render({
	    elem: '#endTime',
	    min:$("#startTime").val()
	  });
	  
	  
	});
	</script>    
    
</body>
</html>